package org.summer.common.http;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 全局分页数据响应包装类
 * @author wjj9132
 * @date 2024/9/26 8:46
 * @since 1.0
 * @param <T> 泛型参数，用于封装不同类型的数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Page<T> implements Serializable {
    private Integer currentPage;
    private Integer pageSize;
    private Integer totalPage;
    private Long totalCount;
    private List<T> data;
}
